//
//  PhotoViewLayout.swift
//  ImageBrowse
//
//  Created by zs on 16/6/19.
//  Copyright © 2016年 zs. All rights reserved.
//

import UIKit

class PhotoViewLayout: UICollectionViewFlowLayout {
   
    override func prepareLayout() {
        super.prepareLayout()
        
        itemSize = (collectionView?.bounds.size)!
        minimumLineSpacing = 0
        minimumInteritemSpacing = 0
        scrollDirection = .Horizontal
        collectionView?.pagingEnabled = true
        
        
    }
    
}
